//声明所有的主键       
var CIP_Apply_pk = 'CIP_ID';
var FX_PX_DS_pk = 'PX_ID';
var FX_PX_ITEM_DS_pk = 'PX_ITEM_ID';
var PlanningTopics_pk = 'XT_ID';
var bj_xtlx_pk = 'XT_ID';
var ds_cw_cost_pk = 'COST_ID';
var ds_cw_cost4_pk = 'COST_ID';
var ds_bs_subject_pk = 'BS_ID';   //科目资料
var ds_bs_sub2_pk = 'SJ_ID';   //科目对照
var ds_cw_wiped1_pk = 'BS_ID';
var ds_cw_cost5_pk = 'COST_ID';
var ds_cw_cost7_pk = 'COST_ID';
var ds_cw_cost_yf_pk = 'COST_ID';
var ds_cw_cost11_pk = 'COST_ID';
var ds_cw_cost12_pk = 'COST_ID';
var ds_cw_cost13_pk = 'COST_ID';
var ds_cw_cost9_pk = 'COST_ID';
var ds_cw_cost16_pk = 'COST_ID';
var ds_bj_author_jiaogao_pk = 'JIAOGAO_ID';
var ds_bj_isbn_cip1_pk = 'ISBN_ID';
var ds_bj_xt_shenhe1_pk = 'SH_ID';
var ds_bj_jiagong_pk = 'JIAGONG_ID';
var ds_bs_flowmanager1_pk = 'MANAGE_ID';
var ds_bs_flownode1_pk = 'FLOW_ID';
var ds_bs_material1_pk = 'CL_ID';
var ds_fx_cwdz1_pk = 'CWDZ_ID';
var ds_bs_project1_pk = 'PRO_ID';
var ds_cw_charge1_pk = 'CH_ID';
var ds_cw_charge2_pk = 'CH_ID';
var ds_cw_charge_item1_pk = 'CH_ITEM_ID';
var ds_cw_chargefy1_pk = 'CH_ID';
var ds_cw_comparison1_pk = 'PKID';
var ds_cw_comparison2_pk = 'PKID';
var ds_cw_comparison5_pk = 'PKID';
var ds_bs_comparison1_pk = 'PKID';
var ds_bs_comparison2_pk = 'PKID';
var ds_bs_comparison3_pk = 'PKID';
var ds_cw_comparison_reg1_pk = 'COMPARISON_ID';
var ds_cw_comparison6_pk = 'PKID';
var ds_bj_ysqr1_pk = 'YSQR_ID';							    //印数确认
var ds_bj_ysqr1_fx_pk = 'YSQR_ID';
var ds_bs_material1_bj_pk = 'CL_ID';                         //编辑材料维护
var ds_fx_ff_template1_pk='TM_ID';
var ds_fx_xs_client1_pk='XSC_ID';
var ds_fx_xs_fee1_pk='FEE_ID';
var ds_fx_client_sxsj1_pk='CJ_ID';
var ds_fx_shelves_sjxj1_pk='SX_ID';
var ds_fx_shelves_sjxj2_pk='SX_ID';
var ds_fx_shelves_tj1_pk='TJ_ID';
//var ds_fx_shelves1_pk='PK_ID';
var ds_cw_pay1_pk = 'PAY_ID';
var ds_cw_pay_item1_pk = 'PAY_ITEM_ID';
var ds_fx_other_instock1_pk = 'OSI_ID';
var ds_fx_other_instock_item1_pk = 'OSI_ITEM_ID';
var ds_fx_other_outstock1_pk = 'OSO_ID';
var ds_fx_other_outstock_item1_pk = 'OSO_ITEM_ID';
var ds_fx_px1_pk = 'PX_ID';
var ds_fx_px_item1_pk = 'PX_ITEM_ID';
var ds_yz_checkpiece1_pk = 'CHECKPIECE_ID';
var ds_yz_contract_purchase1_pk = 'CONTRACT_ID';            // 订货合同
var ds_yz_contract_purchase_item1_pk = 'CONTRACT_ITEM_ID';            // 订货合同明细
var ds_yz_cl_instock1_pk = 'IN_ID';                         // 材料采购入库
var ds_yz_cl_instock_item1_pk = 'IN_ITEM_ID';           	// 材料采购入库明细
var ds_yz_cl_instock3_pk = 'IN_ID';                         // 材料退货
var ds_yz_cl_instock_item3_pk = 'IN_ITEM_ID';           	// 材料退货明细
var ds_yz_cl_instock4_pk = 'IN_ID';                         // 材料采购入库
var ds_yz_cl_outstock1_pk = 'OUT_ID';                   	// 材料领用出库
var ds_yc_jslist1_pk = 'YC_ID';                           //印厂对账
var ds_yc_jslist1_item1_pk = 'YC_ITEM_ID';                   	// 印厂对账


var ds_yz_cl_outstock_item1_pk = 'OUT_ITEM_ID';				// 材料领用出库明细
var ds_yz_cl_outstock2_pk = 'OUT_ID';                       // 材料领用出库明细

var ds_yz_cl_otherck1_pk = 'QZCK_ID';                         // 纸张其他出库
var ds_yz_cl_otherck_item1_pk = 'QZCK_ITEM_ID';                   	// 纸张其他出库


var ds_yz_qt_instock1_pk = 'ZZIN_ID';                  //纸张其他入库     
var ds_yz_qt_instock_item1_pk = 'ZZIN_ITEM_ID';        //纸张其他入库          

var ds_yz_qt_instock1_pk = 'ZZIN_ID';                  //纸张其他入库     
var ds_yz_qt_instock_item1_pk = 'ZZIN_ITEM_ID';        //纸张其他入库    





var ds_yf_shouldverification1_pk = 'ZC_ID';                  //纸厂预付费单
var ds_yf_shouldverification_item1_pk = 'ZC_ITEM_ID';        //纸厂预付费用明细

var ds_yz_cl_outstock_item2_pk = 'OUT_ITEM_ID';
var ds_cw_cost15_pk='COST_ID';								//材料应付
var ds_yz_cl_changestock1_pk = 'ST_ID';                 	// 材料调拨
var ds_yz_cl_changestock_item1_pk = 'ST_ITEM_ID';       	// 材料调拨明细
var ds_yz_dh_quality1_pk = 'BUMEN';
var ds_yz_entrust1_pk = 'ENTRUST_PRINT_ID';
var ds_yz_print_order1_pk = 'PLAN_ID';
var ds_yz_print_explain1_pk = 'PE_ID';                   	// 编辑的印刷说明单主表
var ds_yz_print_explain2_pk = 'PE_ID';                   	// 印制的印刷说明单主表
var ds_yz_print_explain_item1_pk = 'PE_ITEM_ID';
var ds_yz_print_explain_item2_pk = 'PE_ITEM_ID';
var ds_yz_sample_quality1_pk = 'QUALITY_ID';
var ds_yz_sprk2_pk = 'SPRK_ID';                           	// 印厂到货计划
var ds_yz_sprk_item2_pk = 'SPRK_ITEM_ID';                 	// 印厂到货计划明细
var ds_cw_prod_costpay1_pk = 'PCP_ID';                      //生产成本支付
var ds_cw_prod_costpay_item1_pk = 'PCP_ITEM_ID';                      //生产成本支付

var ds_cw_prod_costpay4_pk = 'PCP_ID';                      //生产成本支付
var ds_cw_prod_costpay_item4_pk = 'PCP_ITEM_ID';                      //生产成本支付

var ds_zc_invoice_kp1_pk = 'INV_ID';                      //纸厂开票
var ds_zc_invoice_kp_item1_pk = 'INV_ITEM_ID';           //纸厂开票明细

var ds_zc_advance1_pk = 'YF_ID';       //纸厂预付



var ds_zz_receipt1_pk = 'CL_ID';       //作者预付单
var ds_cw_clreconcid1_pk = 'CL_ID';                      //材料对账
var ds_cw_clreconcid_item1_pk = 'CL_ITEM_ID';    //材料对账

var ds_yf_shouldverification1_pk = 'ZC_ID';                      //纸厂应付核销 
var ds_yf_shouldverification_item1_pk = 'ZC_ITEM_ID';    //纸厂应付核销 


var yz_execut_pk = 'EX_ID';
var yz_execut_fm_pk = 'EX_FENGMIAN_ID';
var yz_execut_zd_pk = 'EX_FENGMIAN_ID';
var yz_execut_zw_pk = 'EX_FENGMIAN_ID';
var yz_print_explain_pk = 'PE_ID';
var yz_print_explain_fm_pk = 'PE_FENGMIAN_ID';
var yz_print_explain_zd_pk = 'PE_FENGMIAN_ID';
var yz_print_explain_zw_pk = 'PE_FENGMIAN_ID';
var bj_xt_cip_pk = 'XT_ID';
var ds_sys_columns1_pk = 'DS_ID;NAME';
var ds_bs_man2_pk = 'MAN_ID';
var ds_bs_man40_pk = 'MAN_ID';
var ds_bj_comparison1_pk = 'PKID';
var ds_cw_payfy_by1_pk = 'PAY_ID';
var ds_bs_flowmanager9_pk = 'MANAGE_ID';
var sys_save_proc_pk = 'DS_ID';
var ds_yinshuFP_pk = 'ID';
var ds_bs_myWork1_pk = 'MANAGE_ID';
var ds_bj_jiaodui1_pk = 'JIAODUI_ID';
var ds_cw_pay2_pk = 'PAY_ID';
var ds_bj_contract2_pk = 'CONTRACT_ID';
var ds_yz_stocks1_pk = 'S_ID';
var ds_bj_royalty1_pk = 'R_ID';
var ds_bj_royalty_item1_pk = 'R_ITEM_ID';
var ds_bj_paiban1_pk = 'PAIBAN_ID';
var ds_cw_cost_yz_pk = 'COST_ID';                              // 印制-成本单
var ds_ztCost1_pk = 'COST_ID';                                 //组套成本单
var ds_yz_print_explain2_pk = 'PE_ID';                         // 印制-印刷说明单
var ds_bs_operators_pk = 'O_ID';
var ds_sys_right_group1_pk = 'GROUP_ID';
var ds_sys_right_menus_map1_pk = 'M_ID';                       // 权限菜单分组
var ds_sys_right_map1_pk = 'R_ID';                             // 权限人员分组
var ds_sys_right_forbid_columns1_pk = 'C_ID';                  // 权限禁止列
var ds_sys_right_forbid_func1_pk = 'F_ID';                     // 权限禁止方法
var ds_sys_expression_cont1_pk = 'CONT_ID';                    // 印制常量维护
var ds_bs_station2_pk = 'STA_ID';                              // 站点信息
var ds_sys_approve_reg1_pk = 'REG_ID';
var ds_bj_contract3_pk = 'CONTRACT_ID';                        // 译作合同
var ds_bj_contract_illustrator1_pk = 'CONTRACT_ID';            // 插画合同
var ds_cw_pay_item2_pk = 'PAY_ITEM_ID';                        // 付款明细
var ds_yz_reprint1_pk = 'RP_ID';							   // 加印申请
var ds_bj_fengmian_wenan1_pk = 'FMWA_ID';
var ds_fx_jh_cw_pk = 'JH_ID';
var ds_sp_cw_pk = 'INV_ID'; 								   //转收票
var ds_sys_session_contorl1_pk='ID';
var ds_cw_ysxt1_pk='YS_ID';
var ds_cw_ysxt_item1_pk='YS_ITEM_ID';
var ds_bj_xt_tz1_pk = 'XT_ID';                                 //选题套装信息
var ds_bj_xt_tz_item1_pk = 'BJ_TZ_ITEM_ID';                    //选题套装信息明细表
var ds_bj_tz_plan1_pk = 'P_ID';								   //组套装计划
var ds_bj_tz_plan_item1_pk = 'P_ITEM_ID';					   //组套装计划明细

//发行系统的主键
var ds_bs_clients1_pk = 'CLIENTS_ID';
var ds_bs_stocks1_pk = 'S_ID';
var ds_bs_vendors1_pk = 'MAN_ID';								//供应商
var ds_bs_product1_pk = 'H_ID'; 								//商品
var ds_bs_product3_pk = 'H_ID'; 								//商品
var ds_bs_publisher1_pk = 'PUB_ID';								//出版社
var ds_bs_publisher2_pk = 'PUB_ID';								//出版社
var ds_fx_comparison1_pk = 'PKID';
var ds_fx_comparison2_pk = 'PKID';
var ds_fx_comparison3_pk = 'PKID';
var ds_fx_comparison4_pk = 'PKID';
var ds_fx_comparison5_pk = 'PKID';
var ds_edi_operation1_pk = 'ID';                               //EDI上传
var ds_edi_operation2_pk = 'ID';                               //EDI下载

var ds_fx_jh1_pk = 'JH_ID';
var ds_fx_jh_item1_pk = 'JH_ITEM_ID';
var ds_fx_jh2_pk = 'JH_ID';
var ds_fx_jh_item2_pk = 'JH_ITEM_ID';
var ds_fx_os_rk1_pk = 'OS_ID';
var ds_fx_os_rk_item1_pk = 'OS_ITEM_ID';
var ds_fx_os_ck1_pk = 'OS_ID';									//其他出库
var ds_fx_os_ck_item1_pk = 'OS_ITEM_ID';						//其他出库明细
var ds_fx_os_ck2_pk = 'OS_ID';
var ds_fx_os_ck_item2_pk = 'OS_ITEM_ID';
var ds_fx_xs1_pk = 'PX_ID';
var ds_fx_xs_item1_pk = 'PX_ITEM_ID';
var ds_fx_xs2_pk = 'PX_ID';
var ds_fx_xs_item2_pk = 'PX_ITEM_ID';
var ds_fx_fy_vendor1_pk = 'FY_ID'; 									//供应商费用
var ds_fx_fy_clients1_pk = 'FY_ID';									//客户费用
var ds_fx_zd1_pk = 'ZD_ID';										    //征订单
var ds_fx_zd_item1_pk = 'ZD_ITEM_ID';                                    //征订单明细
var ds_fx_charge1_pk = 'CH_ID';                                     //收款单
var ds_fx_charge_item1_pk = 'CH_ITEM_ID';                           //收款单明细
var ds_fx_pay1_pk = 'PAY_ID';                                       //付款单
var ds_fx_pay_item1_pk = 'PAY_ITEM_ID';                             //付款单明细
var ds_cw_invoice_kp1_pk = 'INV_ID';
var ds_cw_invoice_kp_item1_pk = 'INV_ITEM_ID';
var ds_cw_invoice_sp1_pk = 'INV_ID';
var ds_cw_invoice_sp_item1_pk = 'INV_ITEM_ID';
var ds_fx_tj_price1_pk='TJ_ID';
var ds_fx_tj_price_item1_pk ='TJ_ITEM_ID';
var ds_cw_ysxt_item1_pk='YS_ITEM_ID';
var ds_cw_ysxt1_pk='YS_ID';
var ds_bj_ysqr1_pk='YSQR_ID';
var ds_sys_datastore2_pk='DS_ID';
var ds_fx_clients_jslist1_pk='JS_ID';
var ds_fx_clients_jslist_item1_pk='JS_ITEM_ID';
var ds_fx_zt_book1_pk = 'ZT_ID';								     //组套管理
var ds_fx_zt_book_item1_pk='ZT_ITEM_ID';                             //组套管理明细
var ds_fx_ff_clients2_pk ='FFC_ID';
var ds_fx_ff_clients_item2_pk = 'FFC_ITEM_ID';
var ds_bj_contract_illustrator1_pk = 'CONTRACT_ID'; 
var ds_bj_contract_illustrator_item1_pk = 'CONTRACT_ITEM_ID'; 
var ds_fx_zt2_pk = 'ZT_ID'; 
var ds_fx_ct1_pk = 'CT_ID'; 
var ds_fx_invoice_kp1_pk = 'INV_ID';								 //开票单
var ds_fx_invoice_kp_item1_pk = 'INV_ITEM_ID';						 //开票单明细
var ds_fx_ys1_pk= 'YS_ID';                                           //预收单
var ds_fx_clients_hkplan1_pk='HKP_ID';
var ds_fx_clients_hkplan_item1_pk='HKP_ITEM_ID';
var ds_fx_xs_client1_pk='XSC_ID';
var ds_yz_cbhs1_pk='CBHS_ID';									//成本核算单
var ds_yz_cbhs_item1_pk= 'CBHS_ITEM_ID';	
var ds_cw_cost6_pk='COST_ID';
var ds_every_daytask1_pk='EVERYDT_ID';
var ds_yz_reprint1_fx_pk='RP_ID';
var ds_fx_xs_disc_modify1_pk='DM_ID';
var ds_fx_xs_disc_modify_item1_pk='DM_ITEM_ID';
var ds_fx_xs_invch1_pk='IC_ID';
var ds_fx_xs_invch_item1_pk='IC_ITEM_ID';
var ds_fx_bank_daokuan1_pk='DK_ID';
var ds_fx_stocks_db1_pk='DB_ID';
var ds_fx_stocks_db_item1_pk='DB_ITEM_ID';
var ds_fx_order_sal1_pk='SAL_ID';
var ds_fx_order_sal_item1_pk='SAL_ITEM_ID';
 
var ds_fx_prod_disc_modify1_pk='DM_ID';
var ds_fx_prod_disc_modify_item1_pk='DM_ITEM_ID';   //

var ds_bs_comparison5_pk='PKID';

var ds_fx_clientsales1_pk='CS_ID';             //客户实销上报(按日)
var ds_fx_clientsales_item1_pk='CS_ID';   //客户实销上报(按日)


//财务系统的主键
var ds_cw_bookPay1_pk='CP_ID';
var ds_cw_vkp1_pk='VKP_ID';
var ds_cw_vkp_item1_pk='VKP_ITEM_ID'; 
var ds_bs_mexpense1_pk='BM_ID';			//应付费用单
var ds_bs_mexpense_item1_pk='BM_ITEM_ID'; //应付费用单明细
var ds_cw_cb_adjustment1_pk='AD_ID'; //成本调整单
var ds_cw_cb_ensure1_pk='EN_ID'; //成本确认单
var ds_cw_cb_ensure_item1_pk='EN_ITEM_ID';//成本确认单明细
var ds_cw_inv_sp1_pk= 'INV_ID';//财务收票单
var ds_fx_hkd1_pk='HK_ID';			
var ds_fx_hkd_item1_pk='HK_ITEM_ID';
var ds_cw_Royalty1_pk= 'CY_ID';//版税成本单
var ds_fx_MonthSX1_pk='CM_ID';			//客户每月销售上报
var ds_fx_MonthSX_item1_pk='CM_ITEM_ID'; //客户每月销售上报明细
var ds_cw_authorinvoice1_pk='ZZFPD_ID';    //作者发票单
var ds_cw_authorinvoice_item1_pk='ZZFPD_ITEM_ID';//作者发票单明细
var ds_cw_InstockMoney1_pk='YGR_ID';    //预估入库成本单
var ds_cw_reviewFee1_pk = 'SGFYFD_ID';       //审稿费预付单
var ds_cw_reviewFee_item1_pk = 'SGFYFD_ITEM_ID';       //审稿费预付单


var ds_zc_authorcheck1_pk = 'CWZZ_ID';
var ds_zc_authorcheck_item1_pk = 'CWZZ_ITEM_ID';


var ds_cw_cbqr1_pk = 'CBQR_ID';                      //成本确认
var ds_cw_cbqr_item1_pk = 'CBQR_ITEM_ID';           //成本确认

var ds_cw_press1_pk = 'CBS_ID';                      //出版社对账单
var ds_cw_press_item1_pk = 'CBS_ITEM_ID';           //出版社对账单
var ds_cw_cbsroyalty1_pk = 'ZZBS_ID';                      //出版社核销(版税)
var ds_cw_cbsroyalty_item1_pk = 'ZZBS_ITEM_ID';           //出版社核销(版税)
var ds_cw_reader1_pk = 'CBSRED_ID';                      //出版社核销(纸印审稿)
var ds_cw_reader_item1_pk = 'CBSRED_ITEM_ID';           //出版社核销(纸印审稿)



var ds_cw_pubInvoice1_pk = 'CBSFPD_ID';           //出版社发票单
var ds_cw_pubInvoice_item1_pk = 'CBSFPD_ITEM_ID';           //出版社发票单
var ds_zc_authorverification1_pk ='ZZHXD_ID';                     //作者核销单
var ds_zc_authorverification_item1_pk ='ZZHXD_ITEM_ID';             //作者核销单

var ds_cw_indicator1_pk ='EXES_ID';                     //新综合费用
var ds_cw_indicator_item1_pk ='EXES_ITEM_ID';             //新综合费用
var ds_bx_expensesClaim1_pk ='BXFY_ID';                     //新报销费用
var ds_bx_expensesClaim_item1_pk ='BXFY_ITEM_ID';             //新报销费用
var ds_fx_groupMaintain1_pk='LSZTWH_ID';    //临时组套维护
var ds_fx_groupMaintain_item1_pk='LSZTWH_ITEM_ID';//临时组套维护明细
var ds_bx_marketbudget1_pk ='YXYSEDB_ID';                                 //营销预算额度表
var ds_fx_customPayment1_pk='KHHKJH_ID';    //客户回款计划
var ds_fx_customPayment_item1_pk='KHHKJH_ITEM_ID';//客户回款计划明细

var ds_bx_contractapproval1_pk= 'CA_ID';//合同审批


// 声明所有的外键
var ds_cw_cb_ensure_item1_fk='EN_ID';//成本确认单明细外键
var ds_fx_invoice_kp_item1_fk = 'INV_ID';
var ds_fx_prod_disc_modify_item1_fk='DM_ID';
var ds_fx_MonthSX_item1_fk='CM_ID'; //客户每月销售上报明细
var ds_yc_jslist1_item1_fk = 'YC_ID';                   	// 印厂对账

var cw_cost_fk = 'PRO_ID';
var cw_cost_fk = 'XT_ID';
var ds_bs_flowmanager1_fk = 'FLOW_ID';
var ds_bs_man23_fk = 'FLAG_MAN_CLASS';
var ds_bs_man24_fk = 'FLAG_MAN_CLASS';
var ds_bs_man25_fk = 'FLAG_MAN_CLASS';
var ds_bs_man26_fk = 'FLAG_MAN_CLASS';
var ds_bs_man27_fk = 'FLAG_MAN_CLASS';
var ds_bs_man28_fk = 'FLAG_MAN_CLASS';
var ds_bs_man29_fk = 'FLAG_MAN_CLASS';
var ds_bs_man30_fk = 'FLAG_MAN_CLASS';
var ds_bs_man31_fk = 'FLAG_MAN_CLASS';
var ds_bs_man32_fk = 'FLAG_MAN_CLASS';
var ds_bs_man33_fk = 'FLAG_MAN_CLASS';
var ds_bs_man34_fk = 'FLAG_MAN_CLASS';
var ds_bs_man35_fk = 'FLAG_MAN_CLASS';
var ds_bs_man36_fk = 'FLAG_MAN_CLASS';
var ds_bs_man37_fk = 'FLAG_MAN_CLASS';
var ds_bs_man38_fk = 'FLAG_MAN_CLASS';
var ds_bs_man39_fk = 'FLAG_MAN_CLASS';
var ds_bs_man40_fk = 'FLAG_MAN_CLASS';
var ds_cw_charge_item1_fk = 'CH_ID';
var ds_cw_comparison1_fk = 'PARENT_CODEID';
var ds_cw_comparison1_fk = 'COMPARISON_ID';
var ds_cw_comparison2_fk = 'PARENT_CODEID';
var ds_cw_comparison2_fk = 'COMPARISON_ID';
var ds_cw_invoice_kp_item1_fk = 'INVKP_ID';
var ds_cw_invoice_sp_item1_fk = 'INVSP_ID';
var ds_cw_pay_item1_fk = 'PAY_ID';
var ds_fx_comparison10_fk = 'COMPARISON_ID';
var ds_fx_comparison11_fk = 'COMPARISON_ID';
var ds_fx_comparison12_fk = 'COMPARISON_ID';
var ds_fx_comparison13_fk = 'COMPARISON_ID';
var ds_fx_comparison2_fk = 'COMPARISON_ID';
var ds_fx_comparison3_fk = 'COMPARISON_ID';
var ds_fx_comparison4_fk = 'COMPARISON_ID';
var ds_fx_comparison5_fk = 'COMPARISON_ID';
var ds_fx_comparison6_fk = 'COMPARISON_ID';
var ds_fx_comparison7_fk = 'COMPARISON_ID';
var ds_fx_comparison8_fk = 'COMPARISON_ID';
var ds_fx_comparison9_fk = 'COMPARISON_ID';
var ds_fx_jh_item1_fk = 'JH_ID';
var ds_fx_other_instock_item1_fk = 'OSI_ID';
var ds_fx_other_outstock_item1_fk = 'OSO_ID';
var ds_fx_px_item1_fk = 'PX_ID';
var ds_yz_cl_instock_item1_fk = 'IN_ID';
var ds_yz_cl_instock_item3_fk = 'IN_ID';
var ds_yz_cl_outstock_item1_fk = 'OUT_ID';
var ds_yz_cl_outstock_item2_fk = 'OUT_ID';
var ds_yz_sprk_item2_fk = 'SPRK_ID';
var yz_execut_fm_fk = 'EX_ID';
var yz_execut_zd_fk = 'EX_ID';
var yz_execut_zw_fk = 'EX_ID';
var yz_print_explain_fm_fk = 'PE_ID';
var yz_print_explain_zd_fk = 'PE_ID';
var yz_print_explain_zw_fk = 'PE_ID';
var ds_bj_royalty_item1_fk = 'R_ID';
var ds_yz_contract_purchase_item1_fk = 'CONTRACT_ID';			// 订货合同
var ds_fx_zd_item1_fk = 'ZD_ID';
var ds_fx_tj_price_item1_fk='TJ_ID';
var ds_cw_ysxt_item1_fk='YS_ID';
var ds_fx_clients_hkplan_item1_fk='HKP_ID';
var ds_fx_clients_jslist_item1_fk='JS_ID';
var ds_fx_ff_clients_item2_fk='FFC_ID';
var ds_bj_contract_illustrator_item1_fk = 'CONTRACT_ID'; 		//插画合同
var ds_fx_ff_clients_item2_fk='FFC_ID';
var ds_fx_ff_template_item1_pk='TM_ITEM_ID';
var ds_fx_xs_fee_item1_pk='FEE_ITEM_ID';
var ds_fx_xs_fee_item1_fk='FEE_ID';
var ds_fx_xs_client_item1_pk='XSC_ITEM_ID';
var ds_fx_xs_client_item1_fk='XSC_ID';
var ds_fx_shelves_sjxj_item1_pk='SX_ITEM_ID'; 					//上架
var ds_fx_shelves_sjxj_item2_pk='SX_ITEM_ID'; 					//下架
var ds_fx_shelves_tj_item1_pk='TJ_ITEM_ID';						//调架
var ds_fx_shelves_sjxj_item1_fk='SX_ID';						//上架
var ds_fx_shelves_sjxj_item2_fk='SX_ID';            			//下架
var ds_fx_shelves_tj_item1_fk='TJ_ID';           				//调架
var ds_cw_cost6_fk='YZ_CBHS_ID';								//成本核算单
var ds_yz_cl_changestock_item1_fk ="ST_ID"; 					//材料调拨
var ds_cw_vkp_item1_fk = 'VKP_ID';                              //出版社开发票
var ds_bj_xt_tz_item1_fk='XT_ID';                               //选题套装信息
var ds_fx_xs_disc_modify_item1_fk='DM_ID';
var ds_fx_xs_invch_item1_fk='IC_ID';
var ds_cw_prod_costpay_item1_fk = 'PCP_ID';                     //生产成本支付 
var ds_cw_prod_costpay_item4_fk = 'PCP_ID';                     //生产成本支付 
var ds_fx_stocks_db_item1_fk='DB_ID';
var ds_fx_prod_disc_modify_item1_fk='DM_ID';
var ds_fx_order_sal_item1_fk='SAL_ID';
var ds_bj_tz_plan_item1_fk= 'P_ID';								//组套装计划
var ds_yz_cbhs_item1_fk = 'CBHS_ID';
var ds_bj_fkd1_pk='FK_ID';//新的预付单
var ds_bj_jkd1_pk='JK_ID';//借款单
var ds_cw_authorinvoice_item1_fk='ZZFPD_ID';
var ds_yz_qt_instock_item1_fk='ZZIN_ID';	//纸张其他入库
var ds_cw_clreconcid_item1_fk='CL_ID';	//纸厂对账
var ds_bs_man3_pk='MAN_ID'; //印制对象
var ds_cw_reviewFee_item1_fk = 'SGFYFD_ID';       //审稿费预付单
var ds_cw_cbqr_item1_fk='CBQR_ID';	//成本确认
var ds_cw_press_item1_fk='CBS_ID';	//出版社对账单
var ds_cw_cbsroyalty_item1_fk='ZZBS_ID';	//出版社核销(版税)
var ds_cw_reader_item1_fk='CBSRED_ID';	//出版社核销(纸印审稿)
var ds_cw_pubInvoice_item1_fk = 'CBSFPD_ID';           //出版社发票单
var ds_zc_authorcheck_item1_fk='CWZZ_ID';
var ds_zc_authorverification_item1_fk ='ZZHXD_ID';             //作者核销单
var ds_cw_indicator_item1_fk ='EXES_ID';             //新综合费用
var ds_bx_expensesClaim_item1_fk ='BXFY_ID';             //新报销费用
var ds_fx_clientsales_item1_fk ='CS_ID';             //客户实销上报(按日)
var ds_fx_groupMaintain_item1_fk='LSZTWH_ID';//临时组套维护
var ds_fx_customPayment_item1_fk='KHHKJH_ID';//客户回款计划

/*********************************************发行中需要计算的方法的参数****************************/
/***总品种,总数量,总实洋,总码洋,总包册数   顺序 */
var ds_fx_xs2_cfxjs="11110";   			//销售单
var ds_fx_xs3_cfxjs="11110";   			//销售单修改折扣单据
var ds_fx_xs4_cfxjs="11110";   			//销售退货单修改折扣单据
var ds_fx_xs1_cfxjs="11110";			//销售退货单
var ds_fx_zd1_cfxjs="11110";			//客户添货
var ds_fx_zd2_cfxjs="11110";			//收订单已验 
var ds_fx_jh1_cfxjs="11110";		//到货入库
var ds_fx_os_ck1_cfxjs = "11110";	//其它出库
var ds_fx_os_ck2_cfxjs = "11110";	//样书出库
var ds_fx_os_rk1_cfxjs = "11110";	//其它入库
var ds_fx_stocks_db1_cfxjs = "01000";	//仓库调拨


/***********************************根据DsId获取该dsId对应的idField****************/
var ds_xsxt_mx_analysis_idField="ITEM_ID"; 
var ds_xsxt_sp_analysis_idField="H_ID"; 
var ds_xsxt_kh_analysis_idField="CLIENTS_ID";
var ds_xsxt_hyfl_analysis_idField="CC_ID";
var ds_xsxt_pqjl_analysis_idField="O_ID_LASTGR";
var ds_xsxt_sf_analysis_idField="PROVINCE_ID";
var ds_fx_ff_clients2_idField="FFC_ID";
var ds_fx_zd1_idField="ZD_ID";
var ds_fx_hand_out1_idField="RUN_ID";
var ds_fx_xs2_idField="PX_ID";
var ds_fx_bank_daokuan1_idField="DK_ID";
var ds_fx_fy_clients1_idField="FY_ID";
var ds_fx_clients_jslist1_idField="JS_ID";
var ds_fx_invoice_kp1_idField="INV_ID";
var ds_fx_charge1_idField="CH_ID";
var ds_fx_prod_disc_modify1_idField="DM_ID";
var ds_fx_xs_client1_idField="XSC_ID";
var ds_fx_xs_fee1_idField="FEE_ID";
var ds_cw_authorinvoice1_idField="ZZFPD_ID";
var ds_fx_ys1_idField="YS_ID";
var ds_fx_jh1_idField="JH_ID";
var ds_fx_xs1_idField="PX_ID";
var ds_fx_os_ck1_idField="OS_ID";
var ds_fx_os_ck2_idField="OS_ID";
var ds_fx_os_rk1_idField="OS_ID";
var ds_fx_stocks_db1_idField="DB_ID";
var ds_fx_tj_price1_idField="TJ_ID";
var ds_fx_shelves_sjxj1_idField="SX_ID";
var ds_fx_shelves_sjxj2_idField="SX_ID";
var ds_fx_shelves_tj1_idField="TJ_ID";
var ds_fx_zt_book1_idField="ZT_ID";
var ds_fx_zt2_idField="ZT_ID";
var ds_fx_ct1_idField="CT_ID";

var ds_fx_MonthZT1_pk="ZT_ID";
var ds_fx_MonthCYXH1_pk="CY_ID";


